#新建mapping
#索引名称/类型名称/_mapping
#curl -XDELETE 10.16.239.15:9200/oms
curl -X PUT "10.16.239.15:9200/oms?pretty"
curl -XPOST 'http://10.16.239.15:9200/oms/order/_mapping?pretty ' -d '
{
      "order" : {
        "properties" : {
          "address_id" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "address_telephone" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "admin_name" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "aftersales_status" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "dc_status" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "exception_status" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "is_comment" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "is_delay_payment" : {
            "type" : "byte"
          },
          "is_pay" : {
            "type" : "byte"
          },
          "level3" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "level4" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "level5" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "level6" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "level7" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "market_name" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "member_level" : {
            "type" : "byte"
          },
          "money" : {
            "type" : "float"
          },
          "order_id" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "order_status" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "ordered_at" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "provider_id" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "so_codes" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "storage_type_id" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "uid" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "user_type" : {
            "type" : "byte"
          },
          "username" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "warehouse_code" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "zone_id" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "is_delay_payment":{
          "type" : "byte"
         },
         "is_pay":{
         "type" : "byte"
        },
        "pay_type":{
            "type" : "long"
         },
         "parent_order_code":{
            "type" : "string",
            "index" : "not_analyzed"
         },
         "vender_id":{
         "type" : "long"
        },
	"order_dc":{
	"type":"string",
	"index":"not_analyzed"
	},
	"dmall_order_id":{
	"type":"string",
	"index":"not_analyzed"
	}

        }
      }
}'                                                                                                         1,1          顶端